<?php $this->pageTitle = $eventName; ?>
<div class="c_body">	
	<div class="u_tabs">
		<div class="u_tabs_head">
			<a class="u_tab ajaxLink"	id="u_search_tab1" href="<?php echo Yii::app()->createUrl("event/update",array('event'=>$_GET['event'])); ?>">Информация</a>
			<a class="u_tab ajaxLink"	id="u_search_tab2" href="<?php echo Yii::app()->createUrl("event/settingsMember",array('event'=>$_GET['event'])); ?>">Участники</a>
			<div class="u_tab curr"		id="u_search_tab3">Ссылки</div>
		</div>
	</div>	
	<div class="cat_head_members">
		<div class="cat_head_strip"></div>
		<?php 
			echo CHtml::link( 
				'<i>+</i>Добавить ссылку',
				$this->createUrl('event/createUrls',array('event'=>$event)),
				array('class'=>'green_btn r_m ajaxLink')
			);
		?>
		<div class="cat_head_h t">
			<p class="cat_head_h_txt">
				В сообществе <span><?php echo CHtml::encode($countUrls); ?></span> ссылки
			</p>
			<a class="cat_head_h_edit" href="<?php echo Yii::app()->createUrl('event/view',array('event'=>$_GET['event']));?>">
				назад к <?php echo CHtml::encode($eventName); ?>
			</a>
		</div>
	</div>
		<div class="clear"></div>

<?php foreach ($urls as $key => $url) : ?>
<div class="f_dialog_item">
	<div class="f_dialog_item_l">
		<div class="u_buzz_item_l">
			<a href="<?php echo $url->url; ?>" class="u_cont_pic" target="_blank">
				<?php // аватар ссылки
					echo $this->material_image(
						$url->id, 
						$url->avatar, 
						'50', 
						'events/'. $event
					); 
				?>
			</a>
		</div>
		<div class="u_buzz_item_r">
			<div class="u_buzz_name">
				<?php 
					echo CHtml::link( 
						CHtml::encode($url->name),
						$url->url,
						array(
							'target'=>'_blank'
						)
					);
				?>
			</div>
			<p class="u_buzz_date"><?php echo CHtml::encode($url->url); ?></p>
		</div>
	</div>
	<div class="f_dialog_item_r">
		<div class="u_buzz_link_block hidden">
			<!-- Удалить ссылку -->
			<a href="<?php echo Yii::app()->createUrl('event/deleteUrl', array('id'=>$url->id, 'event'=>$event)); ?>" class="u_buzz_link_url l2 removeLink"></a>
		</div>
	</div>
</div>
<?php endforeach; ?>